namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PL_HC_PLANS")]
    public partial class PL_HC_PLANS
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PL_HC_PLANS()
        {
            PL_HC_DETAILS = new HashSet<PL_HC_DETAILS>();
        }

        [Key]
        [StringLength(40)]
        public string PLAN_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string WAYBILL { get; set; }

        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public decimal? WEIGHT { get; set; }

        [StringLength(40)]
        public string SEND_STATION_ID { get; set; }

        [StringLength(40)]
        public string ARRIVE_STATION_ID { get; set; }

        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(40)]
        public string PLAN_USER_ID { get; set; }

        public DateTime? CREATE_TIME { get; set; }

        public bool? PUBLISHED { get; set; }

        public DateTime? PUBLISH_TIME { get; set; }

        public DateTime? START_TIME { get; set; }

        public DateTime? END_TIME { get; set; }

        public int? ARTIFICIAL_CODE { get; set; }

        public decimal? BWEIGHT { get; set; }
        [StringLength(40)]
        public string MINE_ID { get; set; }

        public DateTime? USTART_TIME { get; set; }
        public DateTime? UEND_TIME { get; set; }
        [StringLength(400)] 
        public string REMARK { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PL_HC_DETAILS> PL_HC_DETAILS { get; set; }
    }
}
